\documentclass[aspectratio=169]{beamer}
%\usepackage{pgfpages}
%\setbeamertemplate{note page}[plain]
%\setbeameroption{show notes on second screen}
\usetheme{metropolis}
%\usecolortheme{fly}
\usefonttheme{default}

\setbeamerfont{frametitle}{size=\large}
\usepackage{amsmath,amssymb,mathrsfs}
\usepackage{multirow}
\usepackage{color}
\usepackage{pdfpages}
\usepackage{tabu}
\usepackage{bbm}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{bigstrut}
\usepackage{color,array}
\usepackage{hyperref}
\usepackage{array}
\usepackage{pdflscape}
\usepackage{booktabs}
\usepackage{rotating}
\usepackage{threeparttable}
%\usepackage[position=top]{subfig}
\usepackage{booktabs}
\usepackage{xcolor,colortbl}
\usepackage{apacite}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{tikz}
\usetikzlibrary{positioning}
\tikzset{mynode/.style={draw,align=center}}

\newtheorem{assumption}{Assumption}
\captionsetup[subfigure]{labelformat=empty}
\captionsetup[subfloat]{labelformat=empty}
\captionsetup[table]{labelformat=empty}
\captionsetup[figure]{labelformat=empty}



\DeclareCaptionFont{blue}{\color{LightSteelBlue3}}
\newcommand{\foo}{\color{LightSteelBlue3}\makebox[0pt]{\textbullet}\hskip-0.5pt\vrule width 1pt\hspace{\labelsep}}

\newenvironment{wideitemize}{\itemize\addtolength{\itemsep}{10pt}}{\enditemize}

\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}

\def\zapcolorreset{\let\reset@color\relax\ignorespaces}
\def\colorrows#1{\noalign{\aftergroup\zapcolorreset#1}\ignorespaces}


%center text in tables
\newcommand{\specialCellCenter}[2][c]{\begin{tabular}[#1]{@{}c@{}}#2\end{tabular}}
\newcommand{\specialcell}[2][l]{\begin{tabular}[#1]{@{}l@{}}#2\end{tabular}}

%\newenvironment{spreaditemize}{
%\begin{wideitemize}
%    \setlength{\itemsep}{6pt}
%    \setlength{\parskip}{6pt}
%    \setlength{\parsep}{6pt}
%}{\end{wideitemize}}
%
%\newenvironment{spreadenumerate}{
%\begin{enumerate}
%    \setlength{\itemsep}{6pt}
%    \setlength{\parskip}{6pt}
%    \setlength{\parsep}{6pt}
%}{\end{enumerate}}


%\setbeamertemplate{itemize/enumerate subbody begin}{\footnotesize}
%\setbeamertemplate{itemize/enumerate subsubbody begin}{\scriptsize}
\newcolumntype{H}{>{\setbox0=\hbox\bgroup}c<{\egroup}@{}}
\newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}}
\def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}
\newenvironment{changemargin}[2]{%
  \begin{list}{}{%
    \setlength{\topsep}{0pt}%
    \setlength{\leftmargin}{#1}%
    \setlength{\rightmargin}{#2}%
    \setlength{\listparindent}{\parindent}%
    \setlength{\itemindent}{\parindent}%
    \setlength{\parsep}{\parskip}%
  }%
  \item[]}{\end{list}}


\mode<presentation>
\definecolor{important}{rgb}{0.1,0.1,0.9}

%Mauro defined

\makeatletter\let\expandableinput\@@input\makeatother

\DeclareMathOperator*{\argmin}{argmin}
\renewcommand{\hat}{\widehat}

\setbeamertemplate{navigation symbols}{} 

\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\definecolor{myblue}{rgb}{.1,.4,.5}
\title[Review]{\textcolor{myblue}{Introduction}}

\author[Romero]{Mauricio Romero}





\setbeamertemplate{note page}[compress]
\setbeamerfont{note page}{size=\tiny}
\setbeameroption{hide notes}
%\setbeameroption{show only notes}



\normalsize
\date{}
\begin{document}
\frame{\titlepage}





%\setcounter{tocdepth}{1}
\mode<beamer>{  %  Options for use in slides only.
    \AtBeginSection[] {
    \setcounter{tocdepth}{1}
      \begin{frame}<beamer>{Introduction}
        \tableofcontents
      \end{frame}
      \begin{frame}<beamer>{Introduction}
        \tableofcontents[currentsection]
      \end{frame}
    }
    \AtBeginSubsection[] {
    \setcounter{tocdepth}{2}
      \begin{frame}<beamer>{Introduction}
        \tableofcontents[currentsection,currentsubsection]
      \end{frame}
    }
}



\begin{frame}
\begin{figure}
\includegraphics[scale=0.7]{figures/correlation.png}
\url{https://m.xkcd.com/552/}
\end{figure}
\pause
\textbf{Disclaimer:} This class draws heavily on material from Scott Cunningham's mixtape,  Nick Huntington-Klein's classes, Angrist and Pischke ``Mostly Harmless Econometrics'' and ``Mastering Metrics'', Stock and Watson's ``Introduction to Econometrics'', and other places. 
\end{frame}

\frame{{Cause and effect}
\begin{itemize}
\vfill \item We are interested in the relationship between ``treatment'' and some outcome
\begin{itemize}
\vfill \item Treatment: Some drug; Outcome: health status
\vfill \item Treatment: Attending school; Outcome: wages
\vfill \item Treatment: Waking-up early; Outcome: learning
\vfill \item Treatment: Drinking alcohol; Outcome: child development
\vfill \item Treatment: Legalizing weed; Outcome: violence
\end{itemize}
\end{itemize}
}


\begin{frame}{How? Using Data}
\begin{itemize}
\vfill \item More than understanding \textit{statistics and probability}, we need to understand \textbf{data}:  \textbf{what it means}, and \textbf{how to use it}
\vfill \item Google, Facebook, Rappi, Amazon, and many others, have lots of data on you (and everybody)
\vfill \item Ability to understand data is becoming \textbf{VERY} valuable
\end{itemize}
\end{frame}


\begin{frame}{This course}
\begin{itemize}
\vfill \item Learning how to use the statistical programming language R
\vfill \item Learning how to understand the data we see in the world
\vfill \item Learning how to figure out what data actually tells us
\vfill \item Learning about \textbf{causal inference } --- the economist's comparative advantage!
\end{itemize}
\end{frame}

\begin{frame}{Grades}
\begin{itemize}
\vfill \item 3 exams (25\% each)
\vfill \item 4-5 problem sets (25\% total)
\vfill \item Grade is max of $\frac{PS+Exam1+Exam2+Exam3}{4}$ and $\frac{Exam1+Exam2+Exam3}{3}$ 
\end{itemize}
\end{frame}

\begin{frame}{We'll be using R}
\begin{itemize}
\vfill \item Install R  \url{http://www.r-project.org}
\vfill \item Install RStudio \url{http://www.rstudio.com}
\end{itemize}
\end{frame}

\begin{frame}{Website has all sorts of useful resources: \url{https://tinyurl.com/yxlyav2f}}

\bigskip
\begin{figure}
\includegraphics[width=0.5\textwidth]{figures/qr-code_webpage.pdf}
\end{figure}
\end{frame}

\end{document}